package com.ebt.m.proposal_v2.dao.request;

import java.io.Serializable;

/**
 * 获取附加险列表的参数
 *
 * @author archer.qi
 *         Created on 2017/7/13.
 */
public class ParamGetAttaches implements Serializable {

    /**
     * mainProductId : 2887
     * applicant : {"age":"","sex":1}
     * insured : {"age":"","sex":1,"profession":1}
     */

    public int mainProductId;  /* 主险ID */
    public ApplicantBean applicant; /* 投保人 */
    public InsuredBean insured; /* 被保人 */

    public static class ApplicantBean implements Serializable {
        public String age;
        public int sex;
    }

    public static class InsuredBean implements Serializable {
        public String age;
        public int sex;
        public int profession;
    }


    @Override
    public String toString() {
        return "附加险列表参数->\n"
                + "主险id: " + mainProductId + "\n"
                + "投保人->\n"
                + "年龄： " + applicant.age + "\n"
                + "性别: " + applicant.sex + "\n"
                + "被保人->\n"
                + "年龄： " + insured.age + "\n"
                + "性别: " + insured.sex + "\n"
                + "职业： " + insured.profession;
    }
}
